#!/usr/bin/python3
# -*- coding: utf-8 -*-



from resource_management import *

class Client(Script):

    def install(self, env):
        import params
        version = params.pgsql_version
        Execute('yum install postgresql-{} -y'.format(version),ignore_failures=True)
        print('Install the Sample Srv Slave')

    def configure(self, env):
        print("Nothing needed to do ")

    def stop(self, env):
        print('Nothing needed to do ')

    def start(self, env):
        print('Nothing needed to do ')

    def status(self, env):
        raise ClientComponentHasNoStatus()


if __name__ == "__main__":
    Client().execute()

